package engine;

import java.util.ArrayList;
import java.util.HashMap;

public class Similarity {
	
	public static double[] compareSimilarity(ArrayList<Project> oldProjects, Project newP, HashMap<String, Double> range){
		double similarity[] = new double[oldProjects.size()];
		for(int i = 0; i < oldProjects.size(); i++){
			similarity[i] = compare(newP, oldProjects.get(i), range);
		}
	
		return similarity;
	}

	
	public static double compare(Project p1, Project p2, HashMap<String, Double> range){
		return p1.compareTo(p2, range);
	}
}